UCF STIG Viewer Logo

The macOS system must be configured so that the sudo command requires smart card authentication.


Overview

Finding ID Version Rule ID IA Controls Severity
V-257236 APPL-13-003052 SV-257236r905341_rule Medium
Description
Configuring the operating system to implement organization-wide security implementation guides and security checklists ensures compliance with federal standards and establishes a common security baseline across DOD that reflects the most restrictive security posture consistent with operational requirements. Configuration settings are the set of parameters that can be changed in hardware, software, or firmware components of the system that affect the security posture and/or functionality of the system. Security-related parameters are those parameters impacting the security state of the system, including the parameters required to satisfy other security control requirements. Security-related parameters include, for example: registry settings; account, file, directory permission settings; and settings for functions, ports, protocols, services, and remote connections.
STIG Date
Apple macOS 13 (Ventura) Security Technical Implementation Guide 2023-08-28

Details

Check Text ( C-60921r905339_chk )
For systems that are not using smart card authentication, this requirement is not applicable.

Verify the macOS system is configured to require smart card authentication for the "sudo" command with the following command:

/bin/cat /etc/pam.d/sudo

If the text that returns does not include the line, "auth sufficient pam_smartcard.so" at the top of the listing and "auth required pam_deny.so" as the last entry of the auth management group, this is a finding.
Fix Text (F-60862r905340_fix)
Configure the macOS system to require smart card authentication for the sudo command with the following procedure:

/usr/bin/sudo /bin/cp /etc/pam.d/login /etc/pam.d/sudo_backup_`date "+%Y-%m-%d_%H:%M"`

Replace the contents of "/etc/pam.d/sudo" with the following:

# sudo: auth account password session
auth sufficient pam_smartcard.so
auth required pam_opendirectory.so
auth required pam_deny.so
account required pam_permit.so
password required pam_deny.so
session required pam_permit.so